package cn.edu.scau.cmi.zengdefeng.Singleton;

public class Marshal {
	private static Marshal flag;
	private static int count=0;
	private String name;
	private Marshal(String name) {
		this.name=name;
	}
	public static Marshal getFlag(String name) {
		if(count<10&&!name.equals(null))
			flag=new Marshal(name);
		count++;
		return flag;
	}
	public String getName() {
		return this.name;
	}
	public int getCount() {
		return Marshal.count;
	}

}
